package com.aios.service.impl;

import java.util.Calendar;

import com.aios.entity.AbstractEntity;

public abstract class AbstractService {

	public static final String ITEM_NOT_FOUND_ERROR_MESSAGE = "Searched item not found : ";

	public void saveAddSettings(AbstractEntity entity, String systemUserID) {
		Calendar calendar = Calendar.getInstance();

		entity.setInsertDatetime(calendar.getTime());
		entity.setUpdateDatetime(calendar.getTime());
		entity.setInsertUserId(systemUserID);
		entity.setUpdateUserId(systemUserID);
		entity.setStatus((byte) 0);

	}

	public void saveEditSettings(AbstractEntity entity, String systemUserID) {
		Calendar calendar = Calendar.getInstance();

		entity.setUpdateDatetime(calendar.getTime());
		entity.setUpdateUserId(systemUserID);
	}
	
}